package com.wang.interview.tests.classload;

/**
 * @author: wang
 * @date: 2021/8/8 14:53
 * @description:  // 测试访问类静态变量时，类的加载情况-》从上到下
 */
public class T1 {
    private static int a = get();
    static int b = gett();

    public static int get(){
        System.out.println("9");
        return 9;
    }
    public static int gett(){
        System.out.println("10");
        return 10;
    }

}

class T2 {
    public static void main(String[] args) {
        int b = T1.b;
        /**
         * 9
         * 10
         */
    }
}
